package edu.uoc.tdp.client.pantalles;
import edu.uoc.tdp.comu.beans.*;

import java.awt.GridBagLayout;
import javax.swing.JPanel;
import java.awt.Dimension;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import java.awt.GridBagConstraints;
import java.awt.Rectangle;
import java.util.ArrayList;

import javax.swing.ListSelectionModel;
import javax.swing.JButton;

public class PantallaTipusEventConsulta extends JPanel {
	private ArrayList<TipusEvent> llista = null;

	private static final long serialVersionUID = 1L;
	private JScrollPane jScrollPane = null;
	private JTable jTable = null;
	private JButton jButtonCancelar = null;
	/**
	 * This is the default constructor
	 */
	public PantallaTipusEventConsulta() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(476, 254);
		this.setLayout(null);
		this.add(getJScrollPane(), null);
		this.add(getJButtonCancelar(), null);
	}

	/**
	 * This method initializes jScrollPane	
	 * 	
	 * @return javax.swing.JScrollPane	
	 */
	private JScrollPane getJScrollPane() {
		if (jScrollPane == null) {
			jScrollPane = new JScrollPane();
			jScrollPane.setBounds(new Rectangle(27, 17, 420, 186));
			jScrollPane.setViewportView(getJTable());
		}
		return jScrollPane;
	}

	/**
	 * This method initializes jTable	
	 * 	
	 * @return javax.swing.JTable	
	 */
	private JTable getJTable() {
		if (jTable == null) {
			jTable = new JTable();
			jTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
			jTable.setShowGrid(true);			
		}
		return jTable;
	}

	/**
	 * This method initializes jButtonCancelar	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonCancelar() {
		if (jButtonCancelar == null) {
			jButtonCancelar = new JButton();
			jButtonCancelar.setBounds(new Rectangle(228, 221, 89, 20));
			jButtonCancelar.setText("Cancelar");
		}
		return jButtonCancelar;
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
